package com.hmt.pharmacy.module.medicine.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author 钟志豪
 * @since 2025-06-25
 */
@TableName("py_medicine")
public class Medicine implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id(主键)
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * code(代码)
     */
    private String code;

    /**
     * endcode(编码)
     */
    private String endcode;

    /**
     * name(药品名称)
     */
    private String name;

    /**
     * spec(规格)
     */
    private String spec;

    /**
     * unit(单位)
     */
    private String unit;

    /**
     * prescribe_unit(处方单位)
     */
    private String prescribeUnit;

    /**
     * naction_insur_code(医保国家编码)
     */
    private String nactionInsurCode;

    /**
     * qty(数量)
     */
    private BigDecimal qty;

    /**
     * price(单价)
     */
    private BigDecimal price;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    public String getEndcode() {
        return endcode;
    }

    public void setEndcode(String endcode) {
        this.endcode = endcode;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }
    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
    public String getPrescribeUnit() {
        return prescribeUnit;
    }

    public void setPrescribeUnit(String prescribeUnit) {
        this.prescribeUnit = prescribeUnit;
    }
    public String getNactionInsurCode() {
        return nactionInsurCode;
    }

    public void setNactionInsurCode(String nactionInsurCode) {
        this.nactionInsurCode = nactionInsurCode;
    }
    public BigDecimal getQty() {
        return qty;
    }

    public void setQty(BigDecimal qty) {
        this.qty = qty;
    }
    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Medicine{" +
            "id=" + id +
            ", code=" + code +
            ", endcode=" + endcode +
            ", name=" + name +
            ", spec=" + spec +
            ", unit=" + unit +
            ", prescribeUnit=" + prescribeUnit +
            ", nactionInsurCode=" + nactionInsurCode +
            ", qty=" + qty +
            ", price=" + price +
        "}";
    }
}
